package com.xclink.app.service.core.ReplyMessage;

import java.util.Date;

import com.xclink.app.utils.message.MessageUtil;
import com.xclink.app.utils.message.resp.Video;
import com.xclink.app.utils.message.resp.VideoMessage;

/**
 * 集中处理视频消息之回复视频消息
 * @author ljp
 *
 */
public class ProcessVideoMessage {
	//	视频消息
	public String process(String toUserName,String fromUserName,String mediaId,String thumbMediaId ){
		VideoMessage videoMessage = new VideoMessage();
		Video video = new Video();
		video.setMediaId(mediaId);
		video.setThumbMediaId(thumbMediaId);
		videoMessage.setFromUserName(toUserName);
		videoMessage.setToUserName(fromUserName);
		videoMessage.setCreateTime(new Date().getTime());
		videoMessage.setVideo(video);
		videoMessage.setMsgType(MessageUtil.RESP_MESSAGE_TYPE_VIDEO);
		return MessageUtil.messageToXml(videoMessage);
	}
}
